<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>站长随想录</title>
    <style>
        /*
            .dark-mode {  background-color: #121212;  color: #ffffff;   }
        */
        :root {
            --bg_color: #212f3d;
            --font_color: #c4c4c4;
        }

        body {
            background: var(--bg_color);
        }

        a, span {
            font-size: larger;
            text-decoration: none;
            color: var(--font_color);
        }

        h1 {
            color: var(--font_color);
        }
    </style>
</head>
<body>
<div th:replace="~{common-page/header.html :: myheader}"></div>


<h1>文章列表</h1>

<ul>
    <li th:each="item , iterStat: ${articles}" style=" margin-bottom: 12px; ">
        <span th:text="${iterStat.index}"></span>
        <a th:href="@{'/article/'+${item.id}}" th:text="${item.title}"></a>
    </li>
</ul>



</body>
</html>